package com.express.service.impl;

import com.express.mapper.WordMapper;
import com.express.pojo.Avatar;
import com.express.pojo.Hot;
import com.express.pojo.Image;
import com.express.pojo.KeyWord;
import com.express.service.KeyWordService;
import org.apache.ibatis.javassist.compiler.ast.Keyword;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class KeyWordServiceImpl implements KeyWordService {
    @Autowired
    private WordMapper wordMapper;

    @Override
    public List<KeyWord> queryallkeyword() {
        return wordMapper.queryallkeyword();
    }

    @Override
    public List<Keyword> querypartkeyword(String ishot) {
        return wordMapper.querypartkeyword(ishot);
    }

    @Override
    public List<Image> queryallimage() {
        return wordMapper.queryallimage();
    }

    @Override
    public List<Hot> queryallHot() {
        return wordMapper.queryallHot();
    }

    @Override
    public List<HashMap<String, Object>> searchexpression(String searchvalue) {
        return wordMapper.searchexpression(searchvalue);
    }

    @Override
    public List<Image> queryimagebytag(String id) {
        return wordMapper.queryimagebytag(id);
    }

    @Override
    public List<Avatar> queryAvator(String category) {
        return wordMapper.queryAvator(category);
    }

    public List<Hot> queryparthot() {
        return wordMapper.queryparthot();
    }
}
